if (do_name() != 'Home') : ?>
Reference | fill()
endif ?>
Syntax | fill(r, g, b, a)
fill(h, s, b, a)
fill(c, m, y, k, a)
fill(k, a)
fill(color)
|
Description | Sets the current fill color. All shapes, paths and text following this command will be drawn in this fill color. The color is either specified in terms of RGB, HSB or CMYK depending on the current colormode(). Each RGB, HSB or CMYK parameter ranges between 0.0 and 1.0. The default colormode is RGB. The last parameter is optional and sets the alpha (opacity) value. Additionally, fill() can be called with just one parameter that sets the gray value, or with the color value returned from the color() command. |
Returns | the current fill color |
|
Example | | fill(1.0, 0.0, 0.5)
rect(10, 10, 25, 25)
fill(.3, 0.0, 0.4)
oval(40, 40, 40, 40) |
|
include("util/comment.php"); ?>